-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI tests for reset password #31168
UI tests for reset password #31168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff - just 1 little comment.
The next challenge is how to extract the link from the email text and then browse to it and actually enter a new password.
} | ||
|
||
/** | ||
* @Then the a message with this text should be displayed on the webUI: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Then the a message/Then a message
Codecov Report
@@ Coverage Diff @@
## master #31168 +/- ##
=========================================
Coverage 62.55% 62.55%
Complexity 18279 18279
=========================================
Files 1147 1147
Lines 68472 68472
Branches 1234 1234
=========================================
Hits 42831 42831
Misses 25280 25280
Partials 361 361
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #31168 +/- ##
============================================
+ Coverage 62.26% 62.56% +0.29%
- Complexity 18279 18442 +163
============================================
Files 1147 1147
Lines 68474 68474
Branches 1234 1234
============================================
+ Hits 42635 42839 +204
+ Misses 25478 25274 -204
Partials 361 361
Continue to review full report at Codecov.
|
8d808f4
to
823d0f4
Compare
@phil-davis I have added some more tests, can you review it. |
bce86b2
to
f9e47c3
Compare
f9e47c3
to
ca40b30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good. I just made some small comments about names of methods...
* | ||
* @return void | ||
*/ | ||
public function theAMessageWithThisTextShouldBeDisplayedOnTheWebui(PyStringNode $string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not so important, but you can start this function name just with aMessageWith
* | ||
* @return Page | ||
*/ | ||
private function forgotPasswordField() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The UI text has "reset" and the exception message below has "reset". So this method could be called resetPasswordField()
Otherwise there is sometimes "lost", "forgot" and "reset" for similar things.
Feature: send password reset email | ||
As a user | ||
I want to reset my password | ||
So that I can login my account with new password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that I can login to my account again after forgetting the password
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review and suggestions.
I will fix it right away.
ca40b30
to
2fcfa9e
Compare
@paurakhsharma please make a backport PR to |
backport in #31192 |
UI tests for reset password
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
UI test for testing reset password function
Related Issue
#31116
Motivation and Context
first step for acceptance tests for #31092 (review)
How Has This Been Tested?
run tests locally
Screenshots (if appropriate):
Types of changes
Checklist: